﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MovieSystem.Controle;

namespace MovieSystem.Manager
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        public string arrayOfDataHome{ get; set; }
        
        protected void Page_Load(object sender, EventArgs e)
        {
            CtlUsuario oCtlUsuarios = new CtlUsuario();
            int intTotalUsuarios = oCtlUsuarios.BuscaTodos().Count;

            CtlFilme oCtlFilmes = new CtlFilme();
            int intTotalFilmes = oCtlFilmes.BuscaTodos().Count;


            this.arrayOfDataHome = @" arrayOfDataUsuarios = new Array(
                                                    [" + intTotalUsuarios.ToString() + @",'Usuarios','#A2A4A4']);

                                     arrayOfDataFilmes = new Array(
                                                    [" + intTotalFilmes.ToString() + @",'Filmes','#4682B4']);";


        }
    }
}
